import request from '@/utils/request'

// 查询销毁列表
export function listDestroy(query) {
  return request({
    url: '/archive/destroy/list',
    method: 'get',
    params: query
  })
}

// 查询销毁详细
export function getDestroy(destroyId) {
  return request({
    url: '/archive/destroy/' + destroyId,
    method: 'get'
  })
}

// 新增销毁
export function addDestroy(data) {
  return request({
    url: '/archive/destroy',
    method: 'post',
    data: data
  })
}

// 修改销毁
export function updateDestroy(data) {
  return request({
    url: '/archive/destroy',
    method: 'put',
    data: data
  })
}

// 删除销毁
export function delDestroy(destroyId) {
  return request({
    url: '/archive/destroy/' + destroyId,
    method: 'delete'
  })
}
